<html>
<head><meta charset="utf-8"><title>lint mechanism #84625 · edition 2021 · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/index.html">edition 2021</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/lint.20mechanism.20.2384625.html">lint mechanism #84625</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243983963"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/lint%20mechanism%20%2384625/near/243983963" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/lint.20mechanism.20.2384625.html#243983963">(Jun 26 2021 at 00:19)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="224872">@rylev</span> -- <span class="user-mention" data-user-id="423254">@Katherine Philip</span> expressed some interest in <a href="https://github.com/rust-lang/rust/issues/84625">#84625</a>, which was the idea of making some way to declare a single error that is either a lint or a hard error depending on edition -- do you think that makes sense? How many cases are you aware of that might benefit from that?</p>



<a name="243990290"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/lint%20mechanism%20%2384625/near/243990290" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/lint.20mechanism.20.2384625.html#243990290">(Jun 26 2021 at 02:37)</a>:</h4>
<p>i think in all cases where something is becoming a hard error, it is becoming a hard error to be able to just not handle that case while e.g. parsing. like the <code>dyn</code> example, or like parsing <code>...</code> as generic list/pack expansion (and then getting an error about <code>5</code> not being generic in <code>5...6</code> or something).</p>



<a name="243990338"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/lint%20mechanism%20%2384625/near/243990338" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mara <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/lint.20mechanism.20.2384625.html#243990338">(Jun 26 2021 at 02:38)</a>:</h4>
<p>otherwise there was probably no reason to make it a hard error</p>



<a name="244002994"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/lint%20mechanism%20%2384625/near/244002994" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/lint.20mechanism.20.2384625.html#244002994">(Jun 26 2021 at 08:35)</a>:</h4>
<p>There’s not that many cases and <span class="user-mention" data-user-id="123856">@Vadim Petrochenkov</span> already pointed out that BARE_TRAIT_OBJECT is unlikely to benefit from such a mechanism due to the error case likely requiring completely different handling than the lint case. I’m not convinced that we need such a mechanism yet.</p>



<a name="244007354"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/268952-edition%202021/topic/lint%20mechanism%20%2384625/near/244007354" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/268952-edition-2021/topic/lint.20mechanism.20.2384625.html#244007354">(Jun 26 2021 at 10:20)</a>:</h4>
<p>Yeah, ok. Let's close the issue. Sorry <span class="user-mention" data-user-id="423254">@Katherine Philip</span>!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>